//
//  CustomPickView.h
//  HappiGO
//
//  Created by Zhuo LaiQiang on 11-9-22.
//  Copyright (c) 2011年 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol CustomPickViewDelegate;

@interface CustomPickView : UIView<UIPickerViewDelegate, UIPickerViewDataSource>
{
    id<CustomPickViewDelegate>_delegate;
    NSArray                   *_pickSourceArray;
}

@property (nonatomic, assign) id                         delegate;
@property (assign, nonatomic) IBOutlet UIPickerView     *pick;
@property (nonatomic, retain) NSArray                   *pickSourceArray;

+ (CustomPickView *)viewFromNibWithDelegate:(id)delegate_  pickSourceArray:(NSArray *)pickSourceArray_;

- (IBAction)fixedButtonIsPressed:(id)sender;
- (IBAction)cancelButtonIsPressed:(id)sender;
- (NSString *)getPickValue;

@end


@protocol CustomPickViewDelegate <NSObject>

- (void)fixedButtonIsPressed:(CustomPickView *)customPickView;
- (void)cancelButtonIsPressed:(CustomPickView *)customPickView;

@end